package timer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;

public class TimerTest {
    public static void main(String[] args) {
        Timer t = new Timer();
        Date firstTime = null;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
        try {
            firstTime = sdf.parse("2023-05-22 13:18:30:000");
        } catch (ParseException e) {
            e.printStackTrace();
        }
        t.schedule(new MyTimerTask(), 1000 * 3, 1000);
    }
}

